<?php

namespace Modules\Advert\Http\Controllers\API;

use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use Modules\Advert\Entities\Topic;

class TopicController extends Controller
{
    /**
     * Display a listing of the resource.
     * @return Response
     */
    public function index()
    {
        return Topic::where('merchant_id', 1)->with('goods')->orderBy('order')->get();
    }

}
